package com.xidian.zhiancloud.dao.riskcontrol;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.Page;
import com.xidian.zhiancloud.model.riskcontrol.TrainingRiskStatusList;
import com.xidian.zhiancloud.qo.BaseReqQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 风险管控-风险培训
 */
public interface TtrainingRiskStatusMapper extends BaseMapper<TrainingRiskStatusList> {


    Page<TrainingRiskStatusList> getTtrainingRiskStatusList(
            @Param("searchkey") String searchkey,
            @Param("companyId") Long companyId,
            @Param("state") String state);

    int addTtrainingRiskStatus(@Param("data") TrainingRiskStatusList data);

    List<TrainingRiskStatusList> getByTtraRStatus(@Param("id") String id);

    Page<TrainingRiskStatusList> getExportTtrainingRiskStatusList
            (@Param("companyId") Long companyId,List<Object> list);

    TrainingRiskStatusList getByIds(@Param("id") String id);

    int publishTrainRecord(@Param("id") String id);
    
    int deleteByTtraRStatus(List<String> list);

    int updateTtrainingRiskStatus(
        @Param("id") String id,TrainingRiskStatusList trainRiskSta);
    
    
}
